﻿using System;
using System.Collections.Generic;
using System.Web;

namespace kindly
{
    public static class IterTools
    {
        public static IEnumerable<T> Cycle<T>(IEnumerable<T> iterable)
        {
            while (true)
            {
                foreach (T t in iterable)
                {
                    yield return t;
                }
            }
        }
    }
}